<!DOCTYPE html>
<html lang="en" dir="ltr">
  <head>
    <meta charset="utf-8">
    <title>Photo Album</title>
    <link rel="stylesheet" href="../css/photo_album.css">
  </head>
  <body>
    <div class="container">
      <header>
        <h1>相册</h1>
        <p>实现功能：1.创建并初始化空相册；2.在选定相册内添加和删除图片；3.随页码显示图片；4.可在不同相册间切换并显示第一页图片。</p>
      </header>
      <div class="left">
        <div class="album">
          <img src="../images/img.jpg" alt="">
          <a href="#"  onclick="select_a()" class = "active">default</a>
          <!-- <button type="button" onclick="deleteAlbum(this)">X</button> -->
        </div>
      </div>
      <div class="main">
        <section class="button">
          <input type="button" class="butc" value="创建相册" onclick="createAlbum()">
          <input type="file" alt="上传图片" onchange="createReader(readImage)(event)">
        </section>
        <section class="images">
          <div class="default show"></div>
        </section>
        <section class="page_arr">

            <input type="button" value="首页" onclick="toP1(this)">
            <input type="button" value="1" onclick="roll_show(this)">
            <input type="button" value="2" onclick="showImg(this)">
            <input type="button" value="3" onclick="roll_show(this)">
            <input type="button" value="尾页" onclick="toPL(this)">

        </section>
      </div>

      <footer>
        <p>注：相册原尺寸为一页六幅图，翻页调试时增加了每幅图图框的上下外边距，改为一页显示三幅图</p>
      </footer>
      <script type="text/javascript" src="../js/readfile.js"></script>
      <script type="text/javascript" src="../js/album.js"></script>

    </div>
  </body>
</html>
